﻿using System;
using System.Collections;

namespace EnterpriseLibraryExtensions.Events
{
    /// <summary>
    /// This interface defines an event comparer.
    /// </summary>
    /// <typeparam name="TEventType">The event type the comparer supports.</typeparam>
    public interface IEventComparer<TEventType> : IComparer
    {
        /// <summary>
        /// Returns true if the event comparer handles the provided type.
        /// </summary>
        /// <param name="type">The type to test for.</param>
        /// <returns>True if the type provided is equal to TEventType. Otherwise false.</returns>
        bool CanHandleEventType(Type type);
    }
}
